
<style>
	.cccc{width: 24%;float:left;  margin:2px;height: 25px; line-height: 25px; border-radius:5px }
</style>

<div class="panel-body">
   <form class="form-inline" action="{:U('Project/getuser')}"  method="get">
   	<input type="hidden" value="{$pid}" id="pid" name="id" />
	  <div class="form-group">
	    <label for="code">用户名</label>
	    <input type="text" class="form-control" name="name"  placeholder="如：张三">
	  </div>
  	  <button type="submit" class="btn btn-sm btn-default">查询</button>	
	</form>

 </div>

<div style="width: 90%; margin: 0px auto;  display: block; overflow: hidden;" >
	
	 <volist name="list" id="li">
	        	
	      	<div class="cccc"> 
	      		<input type="radio" class=" radio-inline" name="name" value="{$li.id}" />
	        	<label>{$li.username}</label>
            </div>
          
			 
	        </volist>
	    
	    <input type="hidden" id="pid" value="{$list.id}" />
	     <div class="layer_btn_panel">
            <button class="btn btn-sm btn-success" type="button" id="save">确认</button>
            <input class="btn btn-sm" onclick="closeIframe()" type="button" value="取消" />
        </div>	
	     <nav style="width: 100%;">
			{$page}
		</nav>     
</div>
</div>

<script>
$(function(){
	
	$("#save").click(function(){
		var uid=$("input[type=radio]:checked").val();  
		var pid=$("#pid").val();
		if(uid==null){
				 layer.msg("请选择一个项目经理");
				 return false;	
		}
		var data={
			pid:pid,
			uid:uid
		}
      
		var url="{:U('Project/savepm')}";
		$.post(url,data,function(obj){
			if(obj.s){
				closeIframe(1);
				
			}
		})
		
		
		
	})
	
})	
</script>



